package org.kabeja.dxf.helpers;

/**
 * @author shutao
 * @since 2022/4/24 17:25
 */
public class StyledTextParagraph {
    public static final int VERTICAL_ALIGNMENT_TOP = 2;
    public static final int VERTICAL_ALIGNMENT_BASELINE = 1;
    public static final int VERTICAL_ALIGNMENT_BOTTOM = 0;
    public static final int VERTICAL_ALIGNMENT_CENTER = 4;
    private boolean italic = false;
    private boolean bold = false;
    private boolean underline = false;
    private boolean overline = false;
    private double fontHeight = 0.0D;
    private String font = "";
    private StringBuffer text = new StringBuffer();
    private double width = 0.0D;
    private double obliquiAngle = 0.0D;
    private double characterspace = 0.0D;
    private int lineIndex = 0;
    private boolean newline = false;
    private String fontFile = "";
    private int alignment = 1;
    private Point insertPoint = new Point();

    public StyledTextParagraph() {
    }

    public Point getInsertPoint() {
        return this.insertPoint;
    }

    public void setInsertPoint(Point var1) {
        this.insertPoint = var1;
    }

    public String getFontFile() {
        return this.fontFile;
    }

    public void setFontFile(String var1) {
        this.fontFile = var1;
    }

    public double getCharacterspace() {
        return this.characterspace;
    }

    public void setCharacterspace(double var1) {
        this.characterspace = var1;
    }

    public int getValign() {
        return this.alignment;
    }

    public void setValign(int var1) {
        this.alignment = var1;
    }

    public boolean isBold() {
        return this.bold;
    }

    public void setBold(boolean var1) {
        this.bold = var1;
    }

    public String getFont() {
        return this.font;
    }

    public void setFont(String var1) {
        this.font = var1;
    }

    public double getFontHeight() {
        return this.fontHeight;
    }

    public void setFontHeight(double var1) {
        this.fontHeight = var1;
    }

    public boolean isItalic() {
        return this.italic;
    }

    public void setItalic(boolean var1) {
        this.italic = var1;
    }

    public double getObliquiAngle() {
        return this.obliquiAngle;
    }

    public void setObliquiAngle(double var1) {
        this.obliquiAngle = var1;
    }

    public boolean isOverline() {
        return this.overline;
    }

    public void setOverline(boolean var1) {
        this.overline = var1;
    }

    public String getText() {
        return this.text.toString();
    }

    public void setText(String var1) {
        this.text.delete(0, var1.length());
        this.text.append(var1);
    }

    public boolean isUnderline() {
        return this.underline;
    }

    public void setUnderline(boolean var1) {
        this.underline = var1;
    }

    public double getWidth() {
        return this.width;
    }

    public void setWidth(double var1) {
        this.width = var1;
    }

    public int getLineIndex() {
        return this.lineIndex;
    }

    public void setLineIndex(int var1) {
        this.lineIndex = var1;
    }

    public boolean isNewline() {
        return this.newline;
    }

    public void setNewline(boolean var1) {
        this.newline = var1;
    }

    public void append(String var1) {
        this.text.append(var1);
    }

    public void append(char var1) {
        this.text.append(var1);
    }

    public int getLength() {
        return this.text.length();
    }
}
